home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1790 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  57 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: chang.unx.sas.com!walker
  3. From: walker@chang.unx.sas.com (Doug Walker)
  4. Subject: Re: SAS/C 6.50 near and far
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <DLMwHJ.LFw@unx.sas.com>
  7. Date: Tue, 23 Jan 1996 12:39:19 GMT
  8. X-Nntp-Posting-Host: chang.unx.sas.com
  9. References: <4dsfg6$hrr@fnnews.fnal.gov>
  10. Organization: SAS Institute Inc.
  11.  
  12. In article <4dsfg6$hrr@fnnews.fnal.gov>,
  13. Eric G. Stern <egstern@beatrice.fnal.gov> wrote:
  14. >In SAS/C 6.50+ does anyone know under what circumstances (if any) it
  15. >is permissable to link object files compiled with data=far with a
  16. >library that is compiled with the default option for data= .
  17. >
  18. >                Eric Stern
  19.  
  20.  
  21. Yes, I know.
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. Ok, ok, I guess I should't just leave it at that, eh?
  31. It should work fine to mix data= options as long as
  32. you do the following:
  33.  
  34.    *) Make sure to use __saveds to set up A4 correctly
  35.       as appropriate, including entry points to libraries,
  36.       callback hooks, and any functions called from code 
  37.       compiled with DATA=FARONLY.
  38.  
  39.    *) Use the __near or __far keywords to mark any data 
  40.       items used in one type of module but declared in 
  41.       the other type.  That is, if you define an extern 
  42.       in a module compiled with DATA=FAR, it had better 
  43.       be declared in the near modules with the __far
  44.       keyword, and vice-versa.
  45.  
  46.    *) Link with the SAS/C-provided FAR libraries, not the
  47.       near ones.
  48.  
  49. -- 
  50.   *****                    / walker@unx.sas.com
  51.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  52.  *|. o.| ||                \ AOL: weissblau
  53.   | o  |//     
  54.   ====== 
  55. Any opinions expressed are mine, not those of SAS Institute, Inc.
  56.  
  57.